#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Administrator"
__name__="actions_process"
__date__="2016/8/15"
__time__="16:50"
"""
import pickle
import servialize
def action_process(server_instance,msg):    # server_instance 主程序的实例。
    msg = pickle.load(msg[2])
    print msg
    func_name = msg.keys()[0]
    func = getattr(servialize,func_name)
    func(server_instance,msg[func_name])    # 又将实例传递serviclize下的report_service_data函数。

